
<%@ page import="BL.AccessDB"%>

<%
	HttpSession sess = request.getSession();
%>

<h1>Startseite:</h1>

<b>Links f&uumlr alle:</b>
<form method="post" action="centralServlet">
	<input type="hidden" name=act value="suchen"></input> <input
		type="submit" value="Suchen">
</form>
<%
	if (sess.getAttribute("role") == null) {

%>
<form method="post" action="centralServlet">
	<input type="hidden" name=act value="registrieren"></input> <input
		type="submit" value="Registrieren">
</form>
<%
	}
%>
<%
	if (sess.getAttribute("role") != null) {
		if (sess.getAttribute("role").equals("Member")
				|| sess.getAttribute("role").equals("Admin")) {
%>
<p>
	<b>Links nur f&uumlr Member & Admins:</b>
<form method="post" action="centralServlet">
	<input type="hidden" name=act value="eintragHinzufuegen"></input> <input
		type="submit" value="Eintrag hinzuf&uuml;gen">
</form>
<%
	}
	}
%>
<%
	if (sess.getAttribute("role") != null) {
		if (sess.getAttribute("role").equals("Admin")) {
%>
<p>
	<b>Links nur f&uumlr Admins:</b>
<form method="post" action="centralServlet">
	<input type="hidden" name=act value="kategorieVerwalten"></input> <input
		type="submit" value="Kategorie verwalten">
</form>
<form method="post" action="centralServlet">
	<input type="hidden" name=act value="eintraegeVerwalten"></input> <input
		type="submit" value="Eintraege verwalten">
</form>
<form method="post" action="centralServlet">
	<input type="hidden" name=act value="userVerwalten"></input> <input
		type="submit" value="User verwalten">
</form>
<%
	}
	}
%>